<%@ page contentType="application/vnd.ms-excel" pageEncoding="ISO-8859-1"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%response.setHeader("Content-Disposition", "attachment;filename=rekapMahasiswaPPM.xls");%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Laporan Mahasiswa yang Terlibat Dalam Kegiatan ${jenisPPM}</title>

    </head>
    <body>



        <div class="form_description">
            <h2 align="center">Laporan Mahasiswa yang Terlibat Dalam Kegiatan ${jenisPPM}</h2>
            <h2 align="center">Periode Tahun ${tahunMulai} s.d ${tahunSelesai}</h2>
            <p></p>

        </div>

        <table id = "rounded-corner" width="100%" border="2" bordercolor="#000000">

            <thead>
                <tr>
                    <th width="172" class="table-header-repeat line-left minwidth-1">No</th>
                    <th width="195" class="table-header-repeat line-left">Mahasiswa</th>
                    <th class="table-header-repeat line-left">
                        <c:if test="${(jenisPPM == 'Penelitian')}">
                            Judul Penelitian
                        </c:if>
                        <c:if test="${(jenisPPM == 'Pengabdian Masyarakat')}">
                            Judul Pengabdian Masyarakat
                        </c:if>
                    </th>
                    <th width="489" class="table-header-repeat line-left">
                        <c:if test="${(jenisPPM == 'Penelitian')}">
                            Judul Tugas Akhir
                        </c:if>
                        <c:if test="${(jenisPPM == 'Pengabdian Masyarakat')}">
                            Keterlibatan Mahasiswa
                        </c:if>                                            
                    </th>
                </tr>
            </thead>


            <tbody>
                <% int i = 1;%>
                <c:forEach items="${listMhsPeneliti}" var="listMhsPeneliti" >
                    <tr>
                        <td><%out.print(i + ". ");%><%i++;%> </td>
                        <td>${listMhsPeneliti.namaUser}</td>
                        <td>${listMhsPeneliti.judulPpm}</td>
                        <td>
                            <c:if test="${(jenisPPM == 'Penelitian')}">
                                ${listMhsPeneliti.judulTugasAkhir}
                            </c:if>
                            <c:if test="${(jenisPPM == 'Pengabdian Masyarakat')}">
                                ${listMhsPeneliti.peran}
                            </c:if>  
                        </td>
                    </tr>
                </c:forEach>

                <tr>
                    <td>&nbsp;</td>
                    <td> Jumlah Mahasiswa Yang Terlibat Dalam Kegiatan ${jenisPPM} : <%out.print(i - 1);%> Mahasiswa</td>
                </tr>
            </tbody>

        </table>          
    </body> 
</html>
